package client;

import java.io.IOException;
import java.nio.ByteBuffer;

import commons.OpenMode;

public interface StorageDeviceClient {

	public void closeFile(String pathName) throws IOException;

	public void createFile(String pathName) throws IOException;

	public void deleteFile(String pathName) throws IOException;

	public int getSize(String pathName) throws IOException;

	public void openFile(String pathName, OpenMode mode) throws IOException;

	public int read(String pathName, ByteBuffer bytesToRead) throws IOException;

	public int seek(String pathName, int position) throws IOException;

	public int write(String pathName, ByteBuffer bytesToWrite)
			throws IOException;
}
